﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Intrinsics.X86;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 亚马逊多渠道订单产品信息
    /// </summary>
    /// 

    public class OrderProDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
        public int total { get; set; }
        public List<OrderPro> data { get; set; }

    }

    public class OrderPro
    {
        public string RowId { get; set; }
        public string ID { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 店铺id
        /// </summary>
        public string sid { get; set; }


        /// <summary>
        /// 店铺名称
        /// </summary>
        public string store_name { get; set; }

        /// <summary>
        /// 亚马逊订单号	
        /// </summary>
        public string amazon_order_id { get; set; }
        /// <summary>
        /// 卖家订单号
        /// </summary>
        public string seller_fulfillment_order_id { get; set; }
        /// <summary>
        /// 装箱单备注	
        /// </summary>
        public string displayable_order_comment { get; set; }
        /// <summary>
        /// 销售渠道	
        /// </summary>
        public string sales_channel { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public string purchase_date_local { get; set; }

        /// <summary>
        /// 发货时间（站点时间）
        /// </summary>
        public string ship_date { get; set; }

        /// <summary>
        /// 发货时间（utc时间）
        /// </summary>
        public string ship_date_utc { get; set; }

        /// <summary>
        /// 配送服务	
        /// </summary>
        public string speed_category { get; set; }

        /// <summary>
        /// 商品信息	
        /// </summary>
        public List<listing_detail_info> listing_detail_info { get; set; }

        /// <summary>
        /// asin	
        /// </summary>
        public string asin { get; set; }

        /// <summary>
        /// fnsku	
        /// </summary>
        public string fnsku { get; set; }
        /// <summary>
        /// 数量	
        /// </summary>
        public string quantity { get; set; }
        /// <summary>
        /// 图片地址	
        /// </summary>
        public string small_image_url { get; set; }
        /// <summary>
        /// 品名	
        /// </summary>
        public string local_name { get; set; }
        /// <summary>
        /// 本地产品sku	
        /// </summary>
        public string local_sku { get; set; }
        /// <summary>
        /// msku	
        /// </summary>
        public string msku { get; set; }
        /// <summary>
        /// 商品名称	
        /// </summary>
        public string item_name { get; set; }
        /// <summary>
        /// 已取消数量	
        /// </summary>
        public string cancelled_quantity { get; set; }
        /// <summary>
        /// 不可售数量	
        /// </summary>
        public string unfulfillable_quantity { get; set; }
        /// <summary>
        /// 已发货数量	
        /// </summary>
        public string shipped_quantity { get; set; }

        /// <summary>
        /// 拷贝该对象
        /// </summary>
        /// <returns></returns>
        public OrderPro Clone()
        {
            return (OrderPro)this.MemberwiseClone();
        }

    }

    public class listing_detail_info
    {

        /// <summary>
        /// asin	
        /// </summary>
        public string asin { get; set; }
        /// <summary>
        /// fnsku	
        /// </summary>
        public string fnsku { get; set; }
        /// <summary>
        /// 数量	
        /// </summary>
        public string quantity { get; set; }
        /// <summary>
        /// 图片地址	
        /// </summary>
        public string small_image_url { get; set; }
        /// <summary>
        /// 品名	
        /// </summary>
        public string local_name { get; set; }
        /// <summary>
        /// 本地产品sku	
        /// </summary>
        public string local_sku { get; set; }
        /// <summary>
        /// msku	
        /// </summary>
        public string msku { get; set; }
        /// <summary>
        /// 商品名称	
        /// </summary>
        public string item_name { get; set; }
        /// <summary>
        /// 已取消数量	
        /// </summary>
        public string cancelled_quantity { get; set; }
        /// <summary>
        /// 不可售数量	
        /// </summary>
        public string unfulfillable_quantity { get; set; }
        /// <summary>
        /// 已发货数量	
        /// </summary>
        public string shipped_quantity { get; set; }


    }
}
